René's URL Explorer Experiment


Title: Place import inside the function by nnegrey · Pull Request #2209 · GoogleCloudPlatform/python-docs-samples · GitHub

Open Graph Title: Place import inside the function by nnegrey · Pull Request #2209 · GoogleCloudPlatform/python-docs-samples

X Title: Place import inside the function by nnegrey · Pull Request #2209 · GoogleCloudPlatform/python-docs-samples

Description: Code samples used on cloud.google.com. Contribute to GoogleCloudPlatform/python-docs-samples development by creating an account on GitHub.

Open Graph Description: Makes code copy-pastable runnable

X Description: Makes code copy-pastable runnable

Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:569cdd6b-e68c-728c-f75d-261211a3c49d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8416:1AB40:1267AF:195D9F:6AFE0492
html-safe-nonce92ef94e6acac5fa214d0b4fa61349b72d253d7d01f7d6267b73fbd9275c4554d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDE2OjFBQjQwOjEyNjdBRjoxOTVEOUY6NkFGRTA0OTIiLCJ2aXNpdG9yX2lkIjoiODAwNjkzNDgwOTYxODAyMzU3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6edb50a89764c8ce54d8f0f77735870dad01e3bd09ad0497845dff7890c2c7d2
hovercard-subject-tagpull_request:287185245
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/GoogleCloudPlatform/python-docs-samples/2209/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/caf44cd6d6de60b15713b17af2509b42d9b1aa1c3b712c6a73db2e0021eb951f/GoogleCloudPlatform/python-docs-samples/pull/2209
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/caf44cd6d6de60b15713b17af2509b42d9b1aa1c3b712c6a73db2e0021eb951f/GoogleCloudPlatform/python-docs-samples/pull/2209
og:image:altMakes code copy-pastable runnable
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamennegrey
hostnamegithub.com
expected-hostnamegithub.com
None86d46ece7c3d9b0562692f81a135cb55ad6a1c82c93ab1ac874d2f1b46b28958
turbo-cache-controlno-cache
go-importgithub.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git
octolytics-dimension-user_id2810941
octolytics-dimension-user_loginGoogleCloudPlatform
octolytics-dimension-repository_id35065876
octolytics-dimension-repository_nwoGoogleCloudPlatform/python-docs-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35065876
octolytics-dimension-repository_network_root_nwoGoogleCloudPlatform/python-docs-samples
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5c18e6799976b7bc2f21178024289bb98edbcc85
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F2209
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F2209
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=GoogleCloudPlatform%2Fpython-docs-samples
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
GoogleCloudPlatformhttps://github.com/GoogleCloudPlatform
python-docs-sampleshttps://github.com/GoogleCloudPlatform/python-docs-samples
Codehttps://github.com/GoogleCloudPlatform/python-docs-samples
Issues48 (48)https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests199 (199)https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actionshttps://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wikihttps://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and qualityhttps://github.com/GoogleCloudPlatform/python-docs-samples/security
Insightshttps://github.com/GoogleCloudPlatform/python-docs-samples/insights
https://github.com/GoogleCloudPlatform/python-docs-samples
nnegreyhttps://github.com/nnegrey
masterhttps://github.com/GoogleCloudPlatform/python-docs-samples/tree/master
nnegrey-patch-3https://github.com/GoogleCloudPlatform/python-docs-samples/tree/nnegrey-patch-3
Conversationhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
Commits1 (1)https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/commits
Checkshttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/checks
Files changedhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/files
Place import inside the functionhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#top
nnegreyhttps://github.com/nnegrey
masterhttps://github.com/GoogleCloudPlatform/python-docs-samples/tree/master
nnegrey-patch-3https://github.com/GoogleCloudPlatform/python-docs-samples/tree/nnegrey-patch-3
https://github.com/nnegrey
nnegreyhttps://github.com/nnegrey
Jun 11, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#issue-454808486
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/nnegrey
Place import inside the functionhttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/commits/2cb2d1000747b800a1178a665c9398a0329ddd8e
2cb2d10https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/commits/2cb2d1000747b800a1178a665c9398a0329ddd8e
https://github.com/nnegrey
nnegreyhttps://github.com/nnegrey
dizcologyhttps://github.com/dizcology
June 11, 2019 17:13https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#event-2404895918
https://github.com/googlebot
googlebothttps://github.com/googlebot
cla: yes https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22cla%3A%20yes%22
Jun 11, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#event-2404896394
https://github.com/gguuss
gguusshttps://github.com/gguuss
Jun 12, 2019 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#pullrequestreview-249028349
View reviewed changes https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/files/2cb2d1000747b800a1178a665c9398a0329ddd8e
gguusshttps://github.com/gguuss
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#pullrequestreview-249028349
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/gguuss
gguusshttps://github.com/gguuss
Jun 12, 2019 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#pullrequestreview-249028418
View reviewed changes https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/files/2cb2d1000747b800a1178a665c9398a0329ddd8e
gguusshttps://github.com/gguuss
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#pullrequestreview-249028418
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/nnegrey
nnegreyhttps://github.com/nnegrey
897ac7ahttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/897ac7afb5b964b5524ccdbfcc97e540026df50a
Jun 12, 2019https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#event-2408773304
https://github.com/nnegrey
nnegreyhttps://github.com/nnegrey
June 12, 2019 21:29https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#event-2408773448
busunkim96https://github.com/busunkim96
Sep 1, 2020 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-a6723f7
https://github.com/nnegrey
Place import inside the function [(#2209)](https://github.com/busunkim96/python-speech/commit/a6723f765f835f561746828d88fd30a195f75aa1
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
a6723f7https://github.com/busunkim96/python-speech/commit/a6723f765f835f561746828d88fd30a195f75aa1
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
busunkim96https://github.com/busunkim96
Sep 3, 2020 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-983c494
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(#2209)](https://github.com/googleapis/python-speech/commit/983c494ff7cb9b233e5afeaffa902a61bb1f19cb
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
983c494https://github.com/googleapis/python-speech/commit/983c494ff7cb9b233e5afeaffa902a61bb1f19cb
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/telpirion
telpirionhttps://github.com/telpirion
Jan 13, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-pullrequest-1532834352
chore(speech): migrate code from googleapis/python-speech #8982 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/8982
telpirionhttps://github.com/telpirion
Jan 13, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-a94c9d2
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(https://github.com/GoogleCloudPlatform/python-docs-samples/commit/a94c9d298a3ebb92b99c6445aa8a46feaf2b89fd
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)](https://github.com/GoogleCloudPlatform/python-docs-samples/commit/a94c9d298a3ebb92b99c6445aa8a46feaf2b89fd
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)https://github.com/GoogleCloudPlatform/python-docs-samples/commit/a94c9d298a3ebb92b99c6445aa8a46feaf2b89fd
a94c9d2https://github.com/GoogleCloudPlatform/python-docs-samples/commit/a94c9d298a3ebb92b99c6445aa8a46feaf2b89fd
dandhleehttps://github.com/dandhlee
Feb 9, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-9e41834
https://github.com/nnegrey
https://github.com/dandhlee
Place import inside the function [(https://github.com/GoogleCloudPlatform/python-docs-samples/commit/9e41834a406420d6165a9112e238a9189afb7da5
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)](https://github.com/GoogleCloudPlatform/python-docs-samples/commit/9e41834a406420d6165a9112e238a9189afb7da5
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)https://github.com/GoogleCloudPlatform/python-docs-samples/commit/9e41834a406420d6165a9112e238a9189afb7da5
9e41834https://github.com/GoogleCloudPlatform/python-docs-samples/commit/9e41834a406420d6165a9112e238a9189afb7da5
telpirionhttps://github.com/telpirion
Mar 13, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-5a91f67
https://github.com/nnegrey
https://github.com/telpirion
Place import inside the function [(https://github.com/GoogleCloudPlatform/python-docs-samples/commit/5a91f677bc1224816b1a40037ba846980f1c37e0
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)](https://github.com/GoogleCloudPlatform/python-docs-samples/commit/5a91f677bc1224816b1a40037ba846980f1c37e0
#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
)https://github.com/GoogleCloudPlatform/python-docs-samples/commit/5a91f677bc1224816b1a40037ba846980f1c37e0
5a91f67https://github.com/GoogleCloudPlatform/python-docs-samples/commit/5a91f677bc1224816b1a40037ba846980f1c37e0
atulephttps://github.com/atulep
Apr 6, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-346fb80
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(https://github.com/googleapis/google-cloud-python/commit/346fb801cc47e59fc2c4e0e31b0f9a0d3e6b282d
#2209https://github.com/googleapis/google-cloud-python/issues/2209
)](https://github.com/googleapis/google-cloud-python/commit/346fb801cc47e59fc2c4e0e31b0f9a0d3e6b282d
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
346fb80https://github.com/googleapis/google-cloud-python/commit/346fb801cc47e59fc2c4e0e31b0f9a0d3e6b282d
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
atulephttps://github.com/atulep
Apr 6, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-e485e67
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(https://github.com/googleapis/google-cloud-python/commit/e485e6796bcce9440f83ab185b5f851a5fec6684
#2209https://github.com/googleapis/google-cloud-python/issues/2209
)](https://github.com/googleapis/google-cloud-python/commit/e485e6796bcce9440f83ab185b5f851a5fec6684
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
e485e67https://github.com/googleapis/google-cloud-python/commit/e485e6796bcce9440f83ab185b5f851a5fec6684
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
atulephttps://github.com/atulep
Apr 18, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-0d0c453
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(https://github.com/googleapis/google-cloud-python/commit/0d0c4533568692ef14309e3ab29532f480a122ea
#2209https://github.com/googleapis/google-cloud-python/issues/2209
)](https://github.com/googleapis/google-cloud-python/commit/0d0c4533568692ef14309e3ab29532f480a122ea
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
0d0c453https://github.com/googleapis/google-cloud-python/commit/0d0c4533568692ef14309e3ab29532f480a122ea
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
partheahttps://github.com/parthea
Oct 22, 2023 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-commit-c2d9a8d
https://github.com/nnegrey
https://github.com/busunkim96
Place import inside the function [(https://github.com/googleapis/google-cloud-python/commit/c2d9a8d701eccf88147a58a1d97735208f6ae5c0
#2209https://github.com/googleapis/google-cloud-python/issues/2209
)](https://github.com/googleapis/google-cloud-python/commit/c2d9a8d701eccf88147a58a1d97735208f6ae5c0
GoogleCloudPlatform/python…https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
c2d9a8dhttps://github.com/googleapis/google-cloud-python/commit/c2d9a8d701eccf88147a58a1d97735208f6ae5c0
…-docs-samples#2209https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/parthea
partheahttps://github.com/parthea
Sep 8, 2026 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209#ref-pullrequest-5388298001
migrate code from googleapis/python-bigquery #14589 https://github.com/GoogleCloudPlatform/python-docs-samples/pull/14589
https://github.co/hiddenchars
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fpull%2F2209
https://github.com/dizcology
dizcology https://github.com/dizcology
https://github.com/gguuss
gguuss https://github.com/gguuss
https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209/files/2cb2d1000747b800a1178a665c9398a0329ddd8e
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
cla: yes https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22cla%3A%20yes%22
Please reload this pagehttps://github.com/GoogleCloudPlatform/python-docs-samples/pull/2209
https://github.com/nnegrey
https://github.com/gguuss
https://github.com/googlebot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.